Mark xlat tables initialization code
authorDaniel Boulby <[email protected]>
Thu, 30 Aug 2018 15:48:56 +0000 (16:48 +0100)
committerAntonio Nino Diaz <[email protected]>
Wed, 3 Oct 2018 10:48:15 +0000 (11:48 +0100)
Mark the xlat tables code only used in BL31 initialization as
__init to be reclaimed once no longer needed

Change-Id: I3106bfd994706a57c578624573bcfa525fbbd3c4
Signed-off-by: Daniel Boulby <[email protected]>
lib/xlat_tables_v2/xlat_tables_context.c
lib/xlat_tables_v2/xlat_tables_core.c

index 4a4cb946c249648bf240c2530ba95f9cfe82a652..f180774524e7b24456a7ebd2e734c7521b262ac4 100644 (file)
@@ -56,7 +56,7 @@ int mmap_remove_dynamic_region(uintptr_t base_va, size_t size)
 
 #endif /* PLAT_XLAT_TABLES_DYNAMIC */
 
-void init_xlat_tables(void)
+void __init init_xlat_tables(void)
 {
        assert(tf_xlat_ctx.xlat_regime == EL_REGIME_INVALID);
 
index d9837ff82e0f7467d226dbecdd95189eb0fe0cf4..3b6c6bcb259450c54b25c948d26afa1f63fc8139 100644 (file)
@@ -1012,7 +1012,7 @@ int mmap_remove_dynamic_region_ctx(xlat_ctx_t *ctx, uintptr_t base_va,
 
 #endif /* PLAT_XLAT_TABLES_DYNAMIC */
 
-void init_xlat_tables_ctx(xlat_ctx_t *ctx)
+void __init init_xlat_tables_ctx(xlat_ctx_t *ctx)
 {
        assert(ctx != NULL);
        assert(!ctx->initialized);